package com.exmaple.lemlin.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;
import org.greenrobot.greendao.annotation.Unique;

import java.io.Serializable;

@Entity
public class FriendGood implements Serializable {

    private static final long serialVersionUID = 42L;

    @Id(autoincrement = true)
    private Long id;
    @Unique
    @Property(nameInDb = "name")
    private String name;
    @Property(nameInDb = "sub")
    private String sub;
    @Property(nameInDb = "jid")
    private String jid;
    @Generated(hash = 1500559622)
    public FriendGood(Long id, String name, String sub, String jid) {
        this.id = id;
        this.name = name;
        this.sub = sub;
        this.jid = jid;
    }
    @Generated(hash = 1629859852)
    public FriendGood() {
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public String getName() {
        return this.name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getSub() {
        return this.sub;
    }
    public void setSub(String sub) {
        this.sub = sub;
    }
    public String getJid() {
        return this.jid;
    }
    public void setJid(String jid) {
        this.jid = jid;
    }
}
